﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebApplication1.Common;
using System.Data.SqlClient;

namespace WebApplication1.BLL
{
    public class ClickModelsLogBLL
    {
        public int Add(string userId, int modelNo, int appType)
        {
            string sql = "INSERT INTO [dbo].[T_ModelsReport]([id],[loginID],[modelName],[clickTime],[loginType]) VALUES(NEWID(),@loginID,@modelName,GETDATE(),@loginType)";
            SqlParameter[] parmaes = {
                new SqlParameter("@loginID",userId),
                new SqlParameter("@modelName", modelNo),
                new SqlParameter("@loginType", appType)
            };
            int count = SQLHepler.ExecuteSql(sql, parmaes);
            return count;
        }
    }
}
